<? function get_header(){ ?>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>RagusaInFoto</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
<? } 

function get_css(){ ?>
	<link rel="stylesheet" type="text/css" href="http://www.giorgioprovenzale.it/sites/ragusainfoto/css/style.css" media="screen">
	<link rel="stylesheet" type="text/css" href="http://www.giorgioprovenzale.it/sites/ragusainfoto/css/slider.css" media="screen">
	<link rel="stylesheet" type="text/css" id="skin" href="http://www.giorgioprovenzale.it/sites/ragusainfoto/css/skins/cream.css" media="screen">
	<!--[if IE]>
	<link rel="stylesheet" type="text/css" href="css/ie.css" media="all">
	<![endif]-->
<? } 

function get_js(){ ?>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/jquery.min.js"></script>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/jquery.superfish.min.js"></script>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/jquery.tools.min.js"></script>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/jquery.nivoslider.pack.js"></script>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/xero.forms.js"></script>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/xero.js"></script>
	<script type="text/javascript" src="http://www.giorgioprovenzale.it/sites/ragusainfoto/js/functions.js"></script> 
	<script src="http://connect.facebook.net/it_IT/all.js"></script> 
	<noscript><meta http-equiv="refresh" content="0; url=http://www.giorgioprovenzale.it/sites/ragusainfoto/jserror.html"></noscript>
<? }

function get_nav(){ ?>
	<ul id="nav">
		<li><a id="home" href="http://www.giorgioprovenzale.it/sites/ragusainfoto/index.php"><span>Home</span></a></li>
		<li><a href="#"><span>Categorie</span></a>
			<ul class="subnav">
			<?	$categories = get_categories();
				while($cat = mysql_fetch_array($categories)){
			?>
				<li><a href="#"><? echo $cat['cat_name'];} ?></a></li>
			</ul>
		</li>
		<li><a href="#"><span>Blog</span></a></li>
		<li><a href="#"><span>Contatti</span></a></li>
		<li><a href="#" id="nav_login" style="display:none;" class="current"><span>Login</span></a></li>
		<?php if (isset($_SESSION['id']))
		{
			 ?>
			<li><a href="http://www.giorgioprovenzale.it/sites/ragusainfoto/profile.php" class="current"><span>Profilo</span></a>
			 	<ul class="subnav">
				<li><a href="http://www.giorgioprovenzale.it/sites/ragusainfoto/profile.php">Profilo</a></li>
				<li><a href="http://www.giorgioprovenzale.it/sites/ragusainfoto/logout.php">Logout</a></li>
				</ul>
			</li>
			 <?php
		}
		?>
		<?php if (($_SESSION['admin']))
		{
			 ?>
			 <li><a href="http://www.giorgioprovenzale.it/sites/ragusainfoto/admin/"><span>Admin</span></a>
			 	<ul class="subnav">
					<li><a href="http://www.giorgioprovenzale.it/sites/ragusainfoto/admin/users.php">Utenti</a></li>
					<li><a href="http://www.giorgioprovenzale.it/sites/ragusainfoto/admin/categories.php">Categorie</a></li>
			 	</ul>
			 </li>
			 <?php
		}
		?>
	</ul>
<? }

function get_footer(){?>
	<div id="footer_container">
		<div id="footer">
			
		</div>
		<!-- end actual footer -->
	</div>
	<!-- end footer container -->
<? }